import http from '@/plugins/axios'

/**
 * 
 * @param data 查询咨询记录
 * @returns 
 */
export function getConsultationRecordsList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/consultation/records/getConsultationRecordsList',
        data
    })
}

/**
 * 
 * @param data 新增咨询记录
 * @returns 
 */
export function addConsultationRecords(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/consultation/records/addConsultationRecords',
        data
    })
}

/**
 * 
 * @param data 删除咨询记录
 * @returns 
 */
export function deleteConsultationRecords(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/consultation/records/deleteConsultationRecords',
        data
    })
}

/**
 * 查询业务对接人
 * @returns 
 */
export function getUserListByRoleId(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/customer/getUserListByRoleId',
        data
    })
}

/**
 * 根据咨询记录ID,查询咨询记录数据
 * @returns 
 */
export function getZxjlByZxId(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/consultation/records/getZxjlByZxId',
        data
    })
}

/**
 * 根据咨询记录ID,查询跟进记录
 * @returns 
 */
export function getGjListByZxId(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/consultation/records/getGjListByZxId',
        data
    })
}

/**
 * 
 * @param data 新增跟进记录
 * @returns 
 */
export function addGjjl(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/consultation/records/addGjjl',
        data
    })
}

/**
 * 
 * @param data 根据跟进记录id获取附件列表
 * @returns 
 */
export function getFileListByGlId(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/fileNew/getFileListByGlId',
        data
    })
}

/**
 * 
 * @param data 删除文件
 * @returns 
 */
export function postDeleteFile(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/fileNew/postDeleteFile',
        data
    })
}

/**
 * 
 * @param data 下载文件
 * @returns 
 */
export function postDownLoadFile(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/fileNew/postDownLoadFile',
        data
    })
}